<?php
namespace app\common\model;

class Room extends \think\Model
{
    protected $visible=['name','seat_count','building'];

    protected $pk='name';

    public function building(){
        return $this->hasOne('Building','building','name');
    }

    
}
